package com.bdqn.zhang.service.impl;

import com.bdqn.zhang.mapper.UserMapper;
import com.bdqn.zhang.pojo.User;
import com.bdqn.zhang.service.UserSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <Description> <br>
 *
 * @author tao<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2020/03/11 14:56 <br>
 * @see com.bdqn.zhang.service.impl <br>
 */
@Service("userSevice")
public class UserSeviceImpl implements UserSevice {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAll() {
        return userMapper.getAll();
    }

    @Override
    public User findByName(String username) {
        return userMapper.findByName(username);
    }
}
